using System;
using System.Collections.Generic;
using System.Text;
using System.Transactions;

namespace Active.Core.State
{
    internal class FinanceEmployeeWorkingOrderState : OrderState
    {
        internal static OrderState Instance
        {
            get
            {
                return Singleton<FinanceEmployeeWorkingOrderState>.Instance;
            }
        }
        
        internal override StateValue Value
        {
            get { return StateValue.FinanceEmployeeWorking; }
        }

        internal override bool CanCancelConfirmed(Order context)
        {
            return Utils.IsFinanceEmployee;
        }

        internal override bool CanConfirm(Order context)
        {
            return Utils.IsFinanceEmployee;
        }
    }
}
